<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Office/notice')}">通知管理</a></li>
			<li class="active"><a href="{:url('Office/noticeadd')}">添加通知</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:url('Office/noticeadd_post')}">
			<fieldset>
				<div class="control-group">
					<label class="control-label ">通知标题</label>
					<div class="controls">
						<input type="text" class="form-control" maxlength="125" name="notice_title" style="width: 450px;height: 40px" required>
                        <span class="form-required">*</span>
					</div>
				</div>
                <div class="control-group">
					<label class="control-label">通知内容</label>
					<div class="controls">
						<textarea type="text" class="form-control" maxlength="250" name="notice_content" required cols="5" style="width:450px; height: 150px"></textarea>
                        <span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" >通知人员</label>
					<div class="controls">

						<input type="hidden" id="userIdSelect" name="userIdSelect" >
						<label id="usersNameSelect" ></label>
						<a class="btn btn-primary" href="javascript:void(0);" id="btnusers" ><i class="fa fa-search"></i>添加通知人员</a>
						<span class="form-required">*</span>
					</div>
				</div>
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
	<script type="text/javascript" src="__STATIC__/js/layer/layer.js"></script>
    <script type="text/javascript">

		$("#btnusers").click(function(){
			var url = "{:url('Office/search_notice')}";
			layer.open({
				type: 2,     //包括但不限于一个值 ，具体 可以去查看  2  就是URL
				title: '选择通知人员',
				shadeClose: true,       //我觉着应该再加个onclick shade 遮罩层  Close  关闭
				shade: 0.6,             //遮罩层 透明度
				area: ['60%', '70%'],   //大小
				content: url,            //这个和type  有关系，比如type = 1   content='这里可以直接写'
			});
		});

	</script>
    
</body>
</html>